﻿@model IEnumerable<DNA.Mvc.Management.StatEntry>
@if (Model.Count() > 0)
{
    <table style="width: 100%">
        <tr>
            <td colspan="2">
                @Html.Global("Referring_Top")
            </td>
            <td>
                @Html.Global("RES_PAGEVIEWS")
            </td>
        </tr>
        @{ int i = 1;}
        @foreach (var refer in Model)
        { 
            <tr>
                <td>
                    @(i++).
                </td>
                <td>
                    <a href="@Url.Content(refer.Title)" target="_blank">
                        @Html.Cut(refer.Title,50)</a>
                </td>
                <td style="white-space: nowrap; text-align: right;">
                    @refer.Count
                </td>
            </tr>
        }
    </table>
}
else
{ 
    <div class="ui-state-highlight" style="padding: 10px;">
        @Html.Global("Referring_NoRefers")
    </div>
}